{extend name="layout"}
{block name="content"}
<div class="box-header with-border">
    <h3 class="box-title">给角色设置权限</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
    <form action="" method="POST">
        <input type="hidden" name="__token__" value="{$Request.token}">
        <div class="form-group">
            {volist name='rule_list' id='_list'}
            <div class="checkbox">
                <label>
                {if $array_rules}
                    <input type="checkbox" name="permissions[]" value="{$_list.id}" {if in_array($_list.id,$array_rules)} checked {/if}>
                {else/}
                    <input type="checkbox" name="permissions[]" value="{$_list.id}">
                {/if}
                    {$_list.name}
                </label>
            </div>
            {/volist}
        </div>
        <div class="box-footer">
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </form>


</div>
{/block}